package com.hobart.learning.lagou.edu.blogSystem.service.impl;

import com.hobart.learning.lagou.edu.blogSystem.dao.ArticleDao;
import com.hobart.learning.lagou.edu.blogSystem.pojo.Article;
import com.hobart.learning.lagou.edu.blogSystem.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

/**
 * @author: Hobart Mr.Bai
 * @create: 2021-05-13 11:09
 * @description:
 * @Version 1.0
 **/
@Service
public class ArticleServiceImpl implements ArticleService {

    @Autowired
    private ArticleDao articleDao;

    @Override
    public Page<Article> getArticleForPage(Pageable paging, Article article) {
        return articleDao.getArticleForPage(paging, article);
    }

    @Override
    public Page<Article> getArticleAllForPage(Pageable paging, Article article) {
        return articleDao.getArticleAllForPage(paging, article);
    }
}
